package demo.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class EmpChild extends Emp{
    private Dept dept;
    @Override
    public String toString() {
        return "Emp{" +
                "comm=" + getComm() +
                ", empno=" + getEmpno() +
                ", ename='" + getEname() + '\'' +
                ", job='" + getJob() + '\'' +
                ", mgr=" + getMgr() +
                ", hiredate=" + getHiredate() +
                ", sal=" + getSal() +
                ", deptno=" + getDept() +
                ", dept=" + dept +
                '}';
    }
}
